/**
 * Handle changed data.
 *
 * @param {Object} oldValue old value
 * @param {Object} newValue new value
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"61EA62E9-0818-4BF6-8ED9-3D68ADE37F44"}
 */
function onDataChange_es_jefe(oldValue, newValue, event) 
{
	if(es_jefe==1)
		// jefe_ventas_id=null;  va null o va el mismo codigo del vendedor? 17/08/2011
		jefe_ventas_id=vendedor_id;
	return true;
}

/**
 * Handle record selected.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"7C7730D9-9C47-4A86-95CB-51F43B5F38ED"}
 */
function onRecordSelection(event) 
{
	if(es_jefe==1)
		elements.jefe_ventas_id.enabled=false;
}
